home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GKGM 014
/
GKGM014.iso
/
hentai
/
sex_kitten_sim_rpg.swf
/
scripts
/
DefineSprite_464
/
frame_17
/
PlaceObject2_271_995
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
Wrap
Text File
|
2005-09-06
|
3KB
|
115 lines
onClipEvent(enterFrame){
with(_root.hero)
{
if(Key.isDown(40) && !Key.isDown(37) && !Key.isDown(39))
{
if(_root.hero_face <= 8 || _root.hero_face > 12)
{
_root.hero_face = 9;
}
_root.hero_face += 1;
if(_root.hero_face == 13)
{
_root.hero_face = 9;
}
_root.hero_y += 8;
}
if(Key.isDown(38) && !Key.isDown(37) && !Key.isDown(39))
{
if(_root.hero_face > 4)
{
_root.hero_face = 1;
}
_root.hero_face += 1;
if(_root.hero_face == 5)
{
_root.hero_face = 1;
}
_root.hero_y -= 8;
}
if(Key.isDown(37) && !Key.isDown(40) && !Key.isDown(38))
{
if(_root.hero_face <= 12)
{
_root.hero_face = 13;
}
_root.hero_face += 1;
if(_root.hero_face == 17)
{
_root.hero_face = 13;
}
_root.hero_x -= 8;
}
if(Key.isDown(39) && !Key.isDown(40) && !Key.isDown(38))
{
if(_root.hero_face <= 4 || _root.hero_face > 8)
{
_root.hero_face = 5;
}
_root.hero_face += 1;
if(_root.hero_face == 9)
{
_root.hero_face = 5;
}
_root.hero_x += 8;
}
if(wall.hitTest(getBounds(_root).xMax,_y,true))
{
_root.hero_x -= 8;
}
if(wall.hitTest(getBounds(_root).xMin,_y,true))
{
_root.hero_x += 8;
}
if(wall.hitTest(_x,getBounds(_root).yMax,true))
{
_root.hero_y -= 8;
}
if(wall.hitTest(_x,getBounds(_root).yMin,true))
{
_root.hero_y += 8;
}
if(_root.front.door.hitTest(_x,getBounds(_root).yMin,true))
{
_root.hero_x_temp = _root.hero_x;
_root.hero_y_temp = _root.hero_y;
_root.hero_y = 426;
_root.hero_x = 224;
_root.loc += _root.house_level;
}
if(_root.front.person.hitTest(getBounds(_root).xMax,_y,true) || _root.front.person.hitTest(getBounds(_root).xMin,_y,true) || _root.front.person.hitTest(_x,getBounds(_root).yMax,true) || _root.front.person.hitTest(_x,getBounds(_root).yMin,true))
{
_root.help.gotoAndStop(2);
if(Key.isDown(32))
{
_root.house_loc = x;
_root.play();
}
}
else
{
_root.help.gotoAndStop(1);
}
if(_root.hero_x >= 480)
{
_root.loc += 1;
_root.hero_x = 48;
}
if(_root.hero_x <= 0)
{
_root.loc -= 1;
_root.hero_x = 456;
}
if(_root.hero_y >= 480)
{
_root.loc += _root.sq_level;
_root.hero_y = 48;
}
if(_root.hero_y <= 0)
{
_root.loc -= _root.sq_level;
_root.hero_y = 456;
}
}
}